module.exports = {
    parseMsg(action, payload = {}, metadata = {}) {
        const meta = {
            timestamp: Date.now(),
            ...metadata
        };

        return {
            meta,
            data: {
                action,
                payload,
            },
        };
    },
}